package com.aike.service;

import com.aike.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface UserService {
    //注册
    String register(String username, String password, Integer gender, String classname);

    //登录
    String login(String username, String password);

    //根据id获取用户
    String getUserById(Integer userId);

    //根据类型获取用户
    String getUserByType(Integer type);

    //根据id更新用户
    String updateUserById(Integer userId, String username, String password, Integer gender, String classname, Integer type);

    //根据id删除用户
    String deleteUserById(Integer userId);
}
